package demo.messaging.common;

public class ControlMessage extends AbstractMessage {

	public static enum EnumControlType {
		invite, acceptInvite, cancelConnection, busy,

	}

	private EnumControlType type;

	private String gameChoice;

	public ControlMessage() {

	}

	public ControlMessage(final EnumControlType type) {
		super();
		this.type = type;
	}

	public String getGameChoice() {
		return this.gameChoice;
	}

	public EnumControlType getType() {
		return this.type;
	}

	public void setGameChoice(final String gameChoice) {
		this.gameChoice = gameChoice;
	}

	@Override
	public String toString() {
		return "ControlMessage_" + this.type + "_" + getSender() + "_"
				+ getDestination();
	}

}
